Release 10.1A: OpenEdge Development:
ADM and SmartObjects


SmartDataViewers

A SmartDataViewer is an ADM viewer-class SmartObject that displays database fields in a frame. A SmartDataViewer uses a SmartDataObject as a data source. A SmartDataViewer can be a type of SmartContainer; however, because it is a highly specialized SmartContainer, it is described separately in this section. For a general description of SmartContainers, see the "SmartContainers" section.

In addition to displaying database fields in a frame, a SmartDataViewer coordinates its display of records with other SmartObjects, typically SmartDataBrowsers and SmartDataObjects. SmartDataViewers can also coordinate with SmartPanels to modify records. SmartDataViewers typically use SmartDataObjects as data sources. For more information, see Chapter 4, " Data Management in the ADM."

A SmartDataViewer is intended to contain only basic objects, SmartDataObjects that will be used with SmartSelects, and/or SmartDataFields. (See the "SmartSelects" section and the "SmartDataFields" section.) You typically use contained SmartDataFields to provide specially formatted displays of data in selected fields in the SmartDataViewer. For example, you might develop a SmartDataField that appears as a calendar and use it in a SmartDataViewer to display a date field.

Table 2–7 lists the SmartDataViewer files.

Table 2–7: SmartDataViewer files 
File type
Filename / SmartLinks
Template file
src/adm2/template/viewer.w
(standard SmartDataViewer template with wizard)
Primary include file
src/adm2/viewer.i 
ADM/Progress Advisor- supported SmartLinks
Data-Target
GroupAssign-Source
GroupAssign-Target
TableIO-Target
Update-Source
Properties dialog box
src/adm2/support/visuald.w (source code)
gui/adm2/support/visuald.r (compiled code)


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095